<?php
/**
 * Created by PhpStorm.
 * User: teddy
 * Date: 6/30/16
 * Time: 5:28 PM
 */

/*数据库链接*/
$mysqli = new mysqli('192.168.2.191','root','pwd','Mobile');
/*Sql语句*/
$sql = "SELECT status FROM Mobile.Doing";
/*设置UTF8*/
$mysqli->query("set character set 'utf8'");
$mysqli->query("set names 'utf8'");
/*取数据*/
$results = $mysqli->query($sql);
/*初始化返回数据*/
$data = "";
/*循环取返回数据*/
while($row = $results->fetch_assoc())
{
    $data = $row['status'];
}
/*返回*/
echo $data;

/*释放资源*/
$results->free();

/*关闭链接*/
$mysqli->close();